package com.lzz.subject.application.convert;

import com.lzz.subject.application.dto.SubjectCategoryDTO;
import com.lzz.subject.application.dto.SubjectLabelDTO;
import com.lzz.subject.domain.entity.SubjectCategoryBO;
import com.lzz.subject.domain.entity.SubjectLabelBO;
import com.lzz.subject.infra.basic.entity.SubjectLabel;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 标签dto转换
 */
@Mapper
public interface SubjectLabelDTOConverter {
    SubjectLabelDTOConverter INSTANCE= Mappers.getMapper(SubjectLabelDTOConverter.class);
    SubjectLabelBO converterDtoToLabelBO(SubjectLabelDTO subjectLabelDTO);
    List<SubjectLabelDTO> converterBoToLabelDtoList(List<SubjectLabelBO> boList);
}
